<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>AJAX</title>
</head>
<body>

<script>
  //创建一个对象，用来发起网络请求
  let xhr = new XMLHttpRequest();
  //打开请求
  xhr.open('post','http://v.juhe.cn/toutiao/index')
  //设置监听网络变化
  xhr.onreadystatechange = function () {
      console.log(1)
  }
  //发送请求
  xhr.send({
     key:'db445d86e21c40bf40a3c5b9f4eed7e2',
     type:'qiche'
  })
</script>
</body>
</html>